import service from "@/utils/request.js"
/**
 * 角色列表
 */
export function roleList(data = {}){
    return service.request({
        url: "/api/v1/role/lists",
        method: "post",
        data
    })
}

/**
 * 创建角色
 */
export function roleCreate(data = {}){
    return service.request({
        url: "/api/v1/role/create",
        method: "post",
        data
    })
}

/**
 * 获取所有角色
 */
export function roleListAll(data = {}){
    return service.request({
        url: "/api/v1/role/all",
        method: "post",
        data
    })
}

/**
 * 角色状态
 */
export function roleStaus(data = {}){
    return service.request({
        url: "/api/v1/role/status",
        method: "post",
        data
    })
}

/**
 * 获取权限
 */
export function getPermissions(data = {}){
    return service.request({
        url: "/api/v1/permissions",
        method: "post",
        data
    })
}

/**
 * 获取权限
 */
export function setPermissions(data = {}){
    return service.request({
        url: "/api/v1/setPermissions",
        method: "post",
        data
    })
}
